From a72fd33cbf557662c68faf7a4ee94086ce4cec4b Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Sat, 18 Jul 2026 09:35:00 +0200 Subject: [PATCH] Fix FTBFS with VTK 9.6 Bug-Debian: https://bugs.debian.org/1142180 Gbp-Pq: Name vtk-9.6.patch --- contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp | 6 ++++-- contrib/modules/viz/src/widget.cpp | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp b/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp index e2d3380..9896291 100644 --- a/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp +++ b/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp @@ -45,6 +45,8 @@ #include "../precomp.hpp" +#include + namespace cv { namespace viz { vtkStandardNewMacro(vtkVizInteractorStyle) @@ -96,7 +98,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(const String &file) snapshot_writer->SetFileName(file.c_str()); snapshot_writer->Write(); - cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl; + std::cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl; } ////////////////////////////////////////////////////////////////////////////////////////////// @@ -118,7 +120,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const String &file) exporter->SetInput(Interactor->GetRenderWindow()); exporter->Write(); - cout << "Scene successfully exported (" << file.c_str() << ")" << endl; + std::cout << "Scene successfully exported (" << file.c_str() << ")" << endl; } void cv::viz::vtkVizInteractorStyle::exportScene() diff --git a/contrib/modules/viz/src/widget.cpp b/contrib/modules/viz/src/widget.cpp index b46d3d1..3bfcd6a 100644 --- a/contrib/modules/viz/src/widget.cpp +++ b/contrib/modules/viz/src/widget.cpp @@ -45,6 +45,8 @@ #include "precomp.hpp" +#include + /////////////////////////////////////////////////////////////////////////////////////////////// /// widget implementation -- 2.39.5